﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Modules.zoo.events {
    import flash.events.*;

    public class ZooDialogEvent extends Event {

        public static const REMOVE_ANIMAL_FROM_DISPLAY:String = "zdeRemoveAnimalFromDisplay";
        public static const ADD_ANIMAL_TO_DISPLAY:String = "zdeAddAnimalToDisplay";
        public static const MOUSE_OVER_HOTSPOT:String = "zdeMouseOverHotspot";
        public static const DISPLAY_UPDATE:String = "zdeDisplayUpdate";
        public static const BUY_NEW_ANIMAL:String = "zdeBuyAnimal";
        public static const UNLOCK_ENCLOSURE:String = "zdeUnlockEnclosure";

        public var animalItemName:String;
        public var hotspotLabel:String;
        public var slotIndex:int;
        public var enclosureName:String;

        public function ZooDialogEvent(_arg1:String, _arg2:String="", _arg3:Boolean=false, _arg4:Boolean=false){
            switch (_arg1){
                case BUY_NEW_ANIMAL:
                case ADD_ANIMAL_TO_DISPLAY:
                    this.animalItemName = _arg2;
                    break;
                case UNLOCK_ENCLOSURE:
                    this.enclosureName = _arg2;
                    break;
            };
            super(_arg1, _arg3, _arg4);
        }
    }
}//package Modules.zoo.events 
